from fastapi import FastAPI
from app.routes import trainer_routes

app = FastAPI(title="ML Trainer API")

# 注册路由
app.include_router(trainer_routes.router, prefix="/api/trainer", tags=["trainer"])

if __name__ == "__main__":
    import uvicorn
    uvicorn.run(app, host="0.0.0.0", port=8092) 